<link rel="stylesheet" type="text/css" href="/static/css/common.css">
<style type="text/css">
table{
	border-collapse: collapse;
}
tr td{
	border-bottom: 1px dashed #DDD;
}

</style>

<form action="save" method="post">
<table>
	<tr>
		<th>Field</th>
		<th>Value</th>
	</tr>
	{foreach from=$fields item=field}
	<tr>
		<td>{$field}</td>
		<td><input name="{$field}" value="{$model[$field]}" {if $field == 'id'}readonly="true"{/if}></td>
	</tr>
	{/foreach}
</table>
<button type="submit">提交</button>
</form>


<script type="text/javascript" src="/static/js/jquery-1.7.1.js"></script>

